package com.lemon.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateUtil {
    private static String DATE_TIME_FORMAT = "yyyyMMddHHmmss";
    static DateTimeFormatter formatterWithSecond = DateTimeFormatter.ofPattern(DATE_TIME_FORMAT);

    public static String getyyyyMMddHHmmss(){
        LocalDateTime now = LocalDateTime.now();
        return now.format(formatterWithSecond);
    }

}
